// filepath: /home/wf/codings/simu-board/include/GUI/TimeWidget.hpp
#ifndef SIMUBOARD_TIMEWIDGET_HPP
#define SIMUBOARD_TIMEWIDGET_HPP

#include <FL/Fl_Widget.H>
#include <stdint.h>

class TimeWidget : public Fl_Widget
{
public:
    TimeWidget(int X, int Y, int W, int H, const char* label = nullptr);
    void set_hour(uint8_t h);
    uint8_t hour() const { return hour_; }

protected:
    void draw() override;

private:
    uint8_t hour_ = 12; // 0~24
};

#endif // SIMUBOARD_TIMEWIDGET_HPP

